import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;

//public class CallableDemo1 {
//    public static void main(String[] args) throws InterruptedException, ExecutionException {
//        Callable<Integer> callable = new Callable<Integer>() {
//            public Integer call() throws Exception {
//                int sum = 0;
//                for (int i = 0; i <= 100; i++) {
//                    sum += i;
//                }
//                return sum;
//            }
//        };
//        Thread thread = new Thread(callable);
//        thread.start();
//    }
//}
